﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Configuration;
using Infrastructure;

namespace VietThinks.Website.ActionFilter
{
    public class LogInformationActionRequest : ActionFilterAttribute
    {
        public override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            string LogInfoActionRequest = ConfigurationManager.AppSettings["LogInformationActionRequest"];
            if (LogInfoActionRequest.IsEqual("true", true))
            {
                VisitContext.LogInfoActionRequest();
            }
            base.OnActionExecuting(filterContext);
        }
    }
}